// mixins.scss
// @include rounded-box(32upx);
// @include box-sizing-padding(24upx);
// @include flex-center(center, space-between, column);

// 默认页面顶部距离
$defaultTopdistance: 30rpx;
// 默认主题字体颜色
$defaultColor: #ffc90e;
.text-b {
	background-color: #e7e7e7;
}
/* 报警 */
@keyframes blink {
	100% {
		opacity: 1;
	}

	51% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}

	0% {
		opacity: 0;
	}
}
@mixin alarmLampMix($bj: red) {
	width: 80upx;
	height: 80upx;
	border-radius: 50%;
	background-color: $bj;
	animation: blink 0.5s infinite normal;
}
@mixin flex-center($alignItems: center, $justifyContent: center, $direction: row) {
	display: flex;
	align-items: $alignItems;
	justify-content: $justifyContent;
	flex-direction: $direction;
}

@mixin box-sizing-padding($paddingTop, $paddingRight: null, $paddingBottom: null, $paddingLeft: null) {
	box-sizing: border-box;

	@if $paddingRight == null and $paddingBottom == null and $paddingLeft == null {
		// 传一个参数时，四边相同
		padding: $paddingTop;
	} @else if $paddingBottom == null and $paddingLeft == null {
		// 传两个参数时，上/下、左/右
		padding: $paddingTop $paddingRight;
	} @else if $paddingLeft == null {
		// 传三个参数时，上、左/右、下
		padding: $paddingTop $paddingRight $paddingBottom;
	} @else {
		// 传四个参数时，上、右、下、左
		padding: $paddingTop $paddingRight $paddingBottom $paddingLeft;
	}
}
@mixin rounded-box($radius: 20upx, $bgColor: #fff) {
	border-radius: $radius;
	background-color: $bgColor;
}

@mixin dataAllListStyle($borderColor, $bgColor, $dataColor) {
	border: 2px solid $borderColor;
	background-color: $bgColor;

	.dataAll_data {
		color: $dataColor;
	}
}
@keyframes breathing {
	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.02);
	}
}
